package com.ylyq.ylxx.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName UpdatePlanBidInfoRequest
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/1 11:08
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "更新广告计划出价的请求参数")
public class UpdatePlanBidInfoRequest {
    @ApiModelProperty(value = "广告主ID")
    @NotNull(message = "广告主ID不能为空")
    private Long advertiser_id;
    @ApiModelProperty(value = "批量修改，包含计划id和出价（批量修改数量不能超过100，修改的出价不能小于当前消耗））")
    private List<DataBean> data;
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class DataBean {
        /**
         * campaign_id : 1
         */
        @ApiModelProperty(value = "计划id")
        private Long ad_id;
        @ApiModelProperty(value = "出价，对应OCPM出价方式目标转化出价不能高于10000")
        private Double bid;
    }
}
